package com.mew.chess.core.common.provide;

import com.mew.common.entity.user.Profile;
import com.mew.common.rest.game.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

import java.util.List;


@Component
@FeignClient(value = "mew-kernel-user")
public interface UserFeignService {

    @ResponseBody
    @PostMapping("/profile/addgold")
    Profile addGold(@RequestParam("userId")long userId, @RequestParam("gold")long gold, @RequestParam("type")int type);


}
